package org.example.common.exception;

import lombok.Getter;

@Getter
public class MyExampleException extends RuntimeException{
    private Integer code;
    private String msg;

    public MyExampleException(Integer code,String msg){
        super(msg);
        this.code = code;
        this.msg = msg;
    }
    public MyExampleException(Integer code,String msg,Throwable throwable){
        super(msg,throwable);
        this.code = code;
        this.msg = msg;
    }
    public MyExampleException(String msg){
        super(msg);
        this.code = 403;
        this.msg = msg;
    }
    public MyExampleException(String msg, Throwable throwable){
        super(msg,throwable);
        this.code = 403;
        this.msg = msg;
    }
}
